package com.sandasai.service;

import java.util.Date;

import com.sandasai.vo.UserBean;

public interface UserManager {

	boolean checkUsername(String username);

	boolean checkEmail(String email);

	UserBean getUserBean(String usernameOrEmail, String password);

	boolean checkRegistration(UserBean userBean);

	boolean isWithinRegistrationTime();

	Date getStartTimeOfRegistration();

	Date getEndTimeOfRegistration();

	boolean isAccessible(Integer userType, String username, String fileName);
	
	boolean sendActivationEmail(String username);
	
	void sendMail(String to, String subject, String htmlText) throws Exception;

	boolean activeAccount(String username, String activeCode);

}
